 <!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title><{$title}></title>
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
    <link rel="stylesheet" href="__PUBLIC__/js/my.css">
</head>
<body>
    <div class="container">
        <h1><span class="glyphicon glyphicon-user"></span> <{$title}></h1>
        <div class="mt20">
            <a href="<{:U('User/index')}>" class="btn btn-info">首页</a>
            <a href="<{:U('User/add')}>" class="btn btn-success">添加</a>
        </div>
        <hr>

        <block name="main">
        <table class="table table-hover">
            <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>省份</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="v">
            <tr>
                <td><{$v.id}></td>
                <td><{$v.name}></td>
                <td>
                    <if condition="$v.sex eq '0'">女
                    <elseif condition="$v.sex eq '1'" />男
                    <else/>保密</if>
                </td>
                <td><{$v.age}></td>
                <td><{$v.province}></td>
                <td class="col-md-2">
                    <a href="<{:U('User/edit',array('id'=>$v['id']))}>" class="btn btn-sm btn-primary">编辑</a>
                    <a href="<{:U('User/del',array('id'=>$v['id']))}>" class="btn btn-sm btn-danger">删除</a>
                </td>
            </tr>
            </volist>
        </table>
        </block>
    </div>
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
</body>
</html>